﻿using ListadoAlumno.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;

namespace ListadoAlumno
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
      

        public void miStart()
        {
           Curso miCurso = new Curso();
        
           miCurso.listaCurso.Add(new Alumno("damian", 33104509, 6.5));
           miCurso.listaCurso.Add(new Alumno("Fabian", 33104508, 7.0));
           miCurso.listaCurso.Add(new Alumno("Ramiro", 33104507, 4.0));
           miCurso.listaCurso.Add(new Alumno("Ariel", 33104506, 3.5));
           miCurso.listaCurso.Add(new Alumno("Erika", 33104505, 8.9));
           miCurso.listaCurso.Add(new Alumno("Cinthia", 33104504, 2.5));
           miCurso.listaCurso.Add(new Alumno("Soledad", 33104503, 3.0));
           miCurso.listaCurso.Add(new Alumno("Ndia", 33104502, 6.0));



        }
    }
}